package com.diankangwo.sys.dao;

import com.diankangwo.sys.entity.SysUserTokenEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/** 管理系统用户Token
 * Created by wuye on 2017/9/5.
 */
@Mapper
@Repository
public interface SysUserTokenDao extends BaseDao<SysUserTokenEntity>{

    SysUserTokenEntity queryByUserId(Long userId);

    SysUserTokenEntity queryByToken(String token);
}
